package com.oa.service.impl;



import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.oa.bean.Orders;
import com.oa.dao.IndexDao;
import com.oa.service.SealService;
@Service
public class SealServiceImpl implements SealService {
	@Resource
	public IndexDao indexDao;
	@Override
	public int addOrders(Orders order) {
		return indexDao.addOrdex(order);
	}
	//显示用章表
	@Override
	public List<Orders> showOrderList() {
		// TODO Auto-generated method stub
		return indexDao.showOrderList();
	}
	//删除用章信息
	@Override
	public int deleteOrder(int id) {
		// TODO Auto-generated method stub
		return indexDao.deleteOrder(id);
	}
	@Override
	public Orders queryByIdOrder(int oid) {
		// TODO Auto-generated method stub
		return indexDao.queryByIdOrder(oid);
	}
	@Override
	public int moifyOrder(Orders order) {
		// TODO Auto-generated method stub
		return indexDao.moifyOrders(order);
	}

}
